package cn.edu.xhu.library_management.area;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @Author: MMJ
 * @Date: 2022 - 07 - 03
 * @Description: 区域管理微服务启动类
 */
@SpringBootApplication(scanBasePackages = "cn.edu.xhu.library_management")
@EnableDiscoveryClient
@EnableTransactionManagement // 启注解事务管理
@MapperScan("cn.edu.xhu.library_management.area.mapper")
public class AreasApplication {
    public static void main(String[] args) {
        SpringApplication.run(AreasApplication.class,args);
    }
}
